<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
  <h1>index2:进入限制页面</h1>
  <span th:text="${username}"></span>
  <button  shiro:hasPermission="del">删除</button>
  <button  shiro:hasPermission="add">增加</button>
  <br/>
  <a href="/index">index</a>
  <a href="/index1">index1</a>
  <a href="/logout">退出</a>

</body>
</html>